home *** CD-ROM | disk | FTP | other *** search
/ Windows News 2010 Summer - Disc 1 / WN_Ete2010_CD1.iso / Onglet5 / Weezo / Weezo setup.exe / {code_appDir} / www / themes / common / background.php next >
PHP Script  |  2010-05-19  |  2KB  |  37 lines

  1. <?php
  2. function displayMenu(){
  3.     echo '<div class="menuFrameBody" style="overflow:auto;position:absolute;height:100%px;width:218;left:0;bottom:0"><center>';
  4.     // display "logged as" message & logout control
  5.     outShadowBefore("185px");
  6.     // Account name
  7.     echo '<div class="frame1" style="background:white"><center><div class="frame1Header">'.cfUTF8Encode(cfUGetVar('name'))."</div>\n";
  8.     // Account icon
  9.     echo '<img style="border:1px solid black;margin-bottom:0.5em;" alt="" src="/gfx/icons/'.cfUGetVar('icon').'">'."<br/>\n";
  10.     // Async request indicator
  11.     echo outImage(outIcon('onSmall'),false,'id="asyncRequestIndicator"','position:absolute;left:13px;top:9px;visibility:hidden');
  12.     // Logout button
  13.     if(cfGGetVar('allowUserThemeChange')) echo '<div id="themeControl" style="width:185px;">'.outThemeSelectionControl('user',true,'GET')."</div>\n";
  14.     echo outButton(cfCaption('genLogout'),'javascript:logout()',outIcon('logout'));
  15.     echo "</center></div>\n";
  16.     outFrameShadowAfter();
  17.     echo "<br>";
  18.     echo "<br>\n";
  19.     // Display resources buttons
  20.     foreach(cfResourcesGetUser() as $value){
  21.         outShadowBefore("185px");
  22.         echo '<a href="javascript:'.$value['resourceJsLink'].'" class="menuLarge">'."\n";
  23.         echo '<span class="menuFrame">'.outImage($value['resourceIcon']).'</span>';
  24.         echo '<span style="overflow:hidden;display:block"><b>'.cfUTF8Encode(cfStrTruncate($value['name'],32)).'</b><br>'.cfUTF8Encode($value['resourceTypeLabel']).'</span>';
  25.         echo "</a>\n";
  26.            outFrameShadowAfter();
  27.         echo '<div style="line-height:5px"> </div>';
  28.     }
  29.     echo '</center>';
  30.     echo '</div>';
  31. }
  32. require_once('outputFunctions.php');
  33. echo '<span onclick="window.open(\''.APP_SITE.'\')" style="color:white; cursor:pointer; position:absolute;bottom:7px; right:7px">Weezo - '.cfGGetVar('appVersion').' '.outImage(outIcon('logoSmall'),'#',false,'vertical-align:top; margin-left:1em').'</span>';
  34.  
  35. displayMenu();
  36. ?>
  37.